package com.ebupt.migu.music.util.exception;

/**
 * @program: workorder
 * @description: 异常类型枚举
 * @author: zhanggk
 * @create: 2018-10-18 16:19
 **/
public enum StatusEnum {

    /**
     * 成功
     */
    SUCCESS("0000", "成功"),

    /**
     * 异常
     */
    ERROR("9999", "服务器异常");

    /**
     * 错误编码
     */
    private String code;
    /**
     * 错误信息
     */
    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    StatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
